package com.wuye.model.customer;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanchi on 2016/6/30.
 */
public class OptionFirst implements Serializable{
//    public String toString() {
//        try {
//            return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
//        } catch (Exception e) {
//            return e.getMessage();
//        }
//    }


    @Override
    public String toString() {
        return "{" +
                "\"id\":\"" + id +
                "\",\"pagename\":\"" + pagename +
                "\", \"select\":" + select +
                "}";
    }

    private Integer id;
    private String pagename;
    private List<OptionSecond> select = new ArrayList<OptionSecond>();

    public OptionFirst(Integer id, String name, List<OptionSecond> lists) {
        this.id = id;
        this.pagename = name;
        this.select = lists;
    }

    public OptionFirst() {
    }



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPagename() {
        return pagename;
    }

    public void setPagename(String pagename) {
        this.pagename = pagename;
    }

    public List<OptionSecond> getSelect() {
        return select;
    }

    public void setSelect(List<OptionSecond> select) {
        this.select = select;
    }
}
